.class Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks$1;
.super Ljava/lang/Object;
.source "ChromeCastImpl.java"

# interfaces
.implements Lcom/google/android/gms/common/api/i;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;->onConnected(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lcom/google/android/gms/common/api/i<",
        "Lcom/google/android/gms/cast/e$a;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$1:Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;


# direct methods
.method constructor <init>(Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks$1;->this$1:Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onResult(Lcom/google/android/gms/cast/e$a;)V
    .locals 2

    .line 2
    invoke-interface {p1}, Lcom/google/android/gms/common/api/h;->a()Lcom/google/android/gms/common/api/Status;

    move-result-object v0

    .line 3
    invoke-virtual {v0}, Lcom/google/android/gms/common/api/Status;->k()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 4
    invoke-interface {p1}, Lcom/google/android/gms/cast/e$a;->f()Lcom/google/android/gms/cast/d;

    .line 5
    invoke-interface {p1}, Lcom/google/android/gms/cast/e$a;->b()Ljava/lang/String;

    .line 6
    invoke-interface {p1}, Lcom/google/android/gms/cast/e$a;->d()Ljava/lang/String;

    .line 7
    invoke-interface {p1}, Lcom/google/android/gms/cast/e$a;->c()Z

    .line 8
    iget-object p1, p0, Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks$1;->this$1:Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;

    iget-object p1, p1, Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;->this$0:Lcom/estrongs/chromecast/ChromeCastImpl;

    const/4 v0, 0x1

    invoke-static {p1, v0}, Lcom/estrongs/chromecast/ChromeCastImpl;->access$1002(Lcom/estrongs/chromecast/ChromeCastImpl;Z)Z

    .line 9
    iget-object p1, p0, Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks$1;->this$1:Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;

    iget-object p1, p1, Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;->this$0:Lcom/estrongs/chromecast/ChromeCastImpl;

    invoke-static {p1}, Lcom/estrongs/chromecast/ChromeCastImpl;->access$1100(Lcom/estrongs/chromecast/ChromeCastImpl;)V

    .line 10
    iget-object p1, p0, Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks$1;->this$1:Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;

    iget-object p1, p1, Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;->this$0:Lcom/estrongs/chromecast/ChromeCastImpl;

    invoke-static {p1}, Lcom/estrongs/chromecast/ChromeCastImpl;->access$200(Lcom/estrongs/chromecast/ChromeCastImpl;)Ljava/lang/Object;

    move-result-object p1

    monitor-enter p1

    .line 11
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks$1;->this$1:Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;

    iget-object v0, v0, Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;->this$0:Lcom/estrongs/chromecast/ChromeCastImpl;

    invoke-static {v0}, Lcom/estrongs/chromecast/ChromeCastImpl;->access$1200(Lcom/estrongs/chromecast/ChromeCastImpl;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/chromecast/ChromeCastConnectionListener;

    .line 12
    invoke-interface {v1}, Lcom/estrongs/chromecast/ChromeCastConnectionListener;->onConnected()V

    goto :goto_0

    .line 13
    :cond_0
    monitor-exit p1

    goto :goto_2

    :catchall_0
    move-exception v0

    monitor-exit p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_1
    const-string p1, "ChromeCastImpl"

    const-string v0, "application could not launch"

    .line 14
    invoke-static {p1, v0}, Les/w70;->a(Ljava/lang/String;Ljava/lang/String;)V

    .line 15
    iget-object p1, p0, Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks$1;->this$1:Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;

    iget-object p1, p1, Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;->this$0:Lcom/estrongs/chromecast/ChromeCastImpl;

    invoke-virtual {p1}, Lcom/estrongs/chromecast/ChromeCastImpl;->teardown()V

    .line 16
    iget-object p1, p0, Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks$1;->this$1:Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;

    iget-object p1, p1, Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;->this$0:Lcom/estrongs/chromecast/ChromeCastImpl;

    invoke-static {p1}, Lcom/estrongs/chromecast/ChromeCastImpl;->access$200(Lcom/estrongs/chromecast/ChromeCastImpl;)Ljava/lang/Object;

    move-result-object p1

    monitor-enter p1

    .line 17
    :try_start_1
    iget-object v0, p0, Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks$1;->this$1:Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;

    iget-object v0, v0, Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks;->this$0:Lcom/estrongs/chromecast/ChromeCastImpl;

    invoke-static {v0}, Lcom/estrongs/chromecast/ChromeCastImpl;->access$1200(Lcom/estrongs/chromecast/ChromeCastImpl;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_1
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/chromecast/ChromeCastConnectionListener;

    .line 18
    invoke-interface {v1}, Lcom/estrongs/chromecast/ChromeCastConnectionListener;->onConnectionFailed()V

    goto :goto_1

    .line 19
    :cond_2
    monitor-exit p1

    :goto_2
    return-void

    :catchall_1
    move-exception v0

    monitor-exit p1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    goto :goto_4

    :goto_3
    throw v0

    :goto_4
    goto :goto_3
.end method

.method public bridge synthetic onResult(Lcom/google/android/gms/common/api/h;)V
    .locals 0

    .line 1
    check-cast p1, Lcom/google/android/gms/cast/e$a;

    invoke-virtual {p0, p1}, Lcom/estrongs/chromecast/ChromeCastImpl$ConnectionCallbacks$1;->onResult(Lcom/google/android/gms/cast/e$a;)V

    return-void
.end method
